package com.example.zqh.mapper;

import com.example.zqh.pojo.Shop;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.models.auth.In;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zqh
 * @since 2022-09-10
 */
public interface ShopMapper extends BaseMapper<Shop> {

  /**
    * @Author: zqh
    * @Date:
    * @Description: 店铺分页查询接口
  */
  List<Shop> storePagingQuery(Integer page,Integer size);

  /**
    * @Author: zqh
    * @Date:
    * @Description: 获取所有商店的数量
  */
  Integer getAllShops();

  /**
    * @Author: zqh
    * @Date:
    * @Description: 通过星级查询店铺，分页
  */
  List<Shop> starQueryStore(Integer start,Integer page,Integer size);

  /**
    * @Author: zqh
    * @Date:
    * @Description: 通过星级查询不同商店的数量
  */
  Integer getShopNumberByStart(Integer start);




}
